package com.ssn.iterator.books;

public class Client {
    public static <T> void main(String[] args) {
        Aggregate books = new Books();
        books.addItem(new Book("b1"));
        books.addItem(new Book("b2"));
        books.addItem(new Book("b3"));
        books.addItem(new Book("b4"));
        Iterator iterator = books.iterator();
        while(iterator.hasNext()){
            System.out.println(iterator.next());
        }
    }
}
